package com.example.demo.pagecoofig;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;

@Service
public class MulitConfigService {
    @Value("${spring.data.redis.host}")
    private String redisHostName;

    @Value("${spring.datasource.url}")
    private String jdbcurl;

    public void print(){
        System.out.println("redisHostName , jdbcUrl="+redisHostName+","+jdbcurl);
    }
}

